package com.wnxy.sddfp.trade.controller;

import com.wnxy.sddfp.client.system.UserApi;
import com.wnxy.sddfp.common.model.vo.user.UserInfoVo;
import com.wnxy.sddfp.common.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private UserApi userApi;

    @GetMapping("/{id}")
    @ApiOperation("测试远程调用")
    public Result feignTest(@PathVariable("id") Long id){
        Result<UserInfoVo> result = userApi.queryUserById(id);
        return result;
    }
}
